package com.dlc.shop.systemtest.data.order;

import cn.hutool.core.date.DateUtil;
import com.dlc.shop.bean.app.param.ProdCommParam;
import com.dlc.shop.systemtest.api.order.MyOrderApi;

/**
 * @author Tu
 */
public class ProdCommParamData {
    public static ProdCommParam getProdCommParam(String orderNumber){
        ProdCommParam prodCommParam = new ProdCommParam();
        Long orderItemId =MyOrderApi.orderDetail(orderNumber).getOrderItemDtos().get(0).getOrderItemId();
        prodCommParam.setOrderItemId(orderItemId);
        prodCommParam.setContent("测试用例评价");
        prodCommParam.setScore(5);
        prodCommParam.setIsAnonymous(0);
        prodCommParam.setEvaluate(0);
        prodCommParam.setRecTime(DateUtil.date());
        return prodCommParam;
    }
}
